#include "DataStructure/Result/ElementalStrain/BEAMStrainData.h"

#include "DataStructure/Common/Validation.h"

using namespace SG::DataStructure::Post;

bool SG::DataStructure::Post::operator== (const BEAMStrainData& val1, const BEAMStrainData& val2)
{
    FIELD_COMPARE (m_eId)
    FIELD_COMPARE_ARR (m_GRID, 11)
    FIELD_COMPARE_ARR (m_SD, 11)
    FIELD_COMPARE_ARR (m_XC, 11)
    FIELD_COMPARE_ARR (m_XD, 11)
    FIELD_COMPARE_ARR (m_XE, 11)
    FIELD_COMPARE_ARR (m_XF, 11)
    FIELD_COMPARE_ARR (m_MAX, 11)
    FIELD_COMPARE_ARR (m_MIN, 11)
    FIELD_COMPARE_ARR (m_MST, 11)
    FIELD_COMPARE_ARR (m_MSC, 11)
    FIELD_COMPARE (m_domainId)  // NOLINT(readability-simplify-boolean-expr)
    return true;
}

bool SG::DataStructure::Post::operator< (const BEAMStrainData& a, const BEAMStrainData& b)
{
    return a.m_eId < b.m_eId;
}
